.class public Lcom/waiqin365/lightwork/tracker/model/x;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/waiqin365/lightwork/tracker/model/x;


# instance fields
.field private b:Ljava/util/ArrayList;

.field private c:Ljava/util/ArrayList;

.field private d:Ljava/util/Map;

.field private e:Ljava/util/Map;

.field private final f:Ljava/util/ArrayList;

.field private g:Lcom/waiqin365/lightwork/tracker/model/t;


# direct methods
.method private constructor <init>()V
    .locals 2

    const/4 v1, 0x3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->b:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->c:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->d:Ljava/util/Map;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->e:Ljava/util/Map;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->f:Ljava/util/ArrayList;

    return-void
.end method

.method public static a()Lcom/waiqin365/lightwork/tracker/model/x;
    .locals 1

    sget-object v0, Lcom/waiqin365/lightwork/tracker/model/x;->a:Lcom/waiqin365/lightwork/tracker/model/x;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightwork/tracker/model/x;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/tracker/model/x;-><init>()V

    sput-object v0, Lcom/waiqin365/lightwork/tracker/model/x;->a:Lcom/waiqin365/lightwork/tracker/model/x;

    :cond_0
    sget-object v0, Lcom/waiqin365/lightwork/tracker/model/x;->a:Lcom/waiqin365/lightwork/tracker/model/x;

    return-object v0
.end method

.method private declared-synchronized c(Ljava/util/List;)V
    .locals 1

    monitor-enter p0

    if-nez p1, :cond_0

    :goto_0
    monitor-exit p0

    return-void

    :cond_0
    :try_start_0
    new-instance v0, Lcom/waiqin365/lightwork/tracker/model/z;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/tracker/model/z;-><init>(Lcom/waiqin365/lightwork/tracker/model/x;)V

    invoke-static {p1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private declared-synchronized i()V
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->b:Ljava/util/ArrayList;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightwork/tracker/model/x;->c(Ljava/util/List;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method


# virtual methods
.method public a(Lcom/waiqin365/lightwork/tracker/model/t;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/model/x;->g:Lcom/waiqin365/lightwork/tracker/model/t;

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->c:Ljava/util/ArrayList;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightwork/tracker/model/x;->c(Ljava/util/List;)V

    return-void
.end method

.method public a(Ljava/util/ArrayList;Z)[Ljava/lang/String;
    .locals 4

    const/4 v0, 0x0

    if-eqz p1, :cond_3

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    if-eqz p2, :cond_0

    const-string/jumbo v0, "*"

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/t;

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->l:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/t;->l:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_2
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    new-instance v2, Lcom/waiqin365/lightwork/tracker/model/y;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightwork/tracker/model/y;-><init>(Lcom/waiqin365/lightwork/tracker/model/x;)V

    invoke-static {v1, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    new-array v0, v0, [Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Ljava/lang/String;

    check-cast v0, [Ljava/lang/String;

    :cond_3
    if-nez v0, :cond_4

    const/4 v0, 0x0

    new-array v0, v0, [Ljava/lang/String;

    :cond_4
    return-object v0
.end method

.method public b()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/model/x;->h()V

    return-void
.end method

.method public b(Ljava/util/List;)V
    .locals 4

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    const/4 v0, 0x0

    :goto_0
    if-ge v0, v1, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/model/x;->b:Ljava/util/ArrayList;

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/model/x;->i()V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/model/x;->h()V

    return-void
.end method

.method public c()Lcom/waiqin365/lightwork/tracker/model/t;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->g:Lcom/waiqin365/lightwork/tracker/model/t;

    return-object v0
.end method

.method public d()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public e()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    return-void
.end method

.method public f()Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->c:Ljava/util/ArrayList;

    return-object v0
.end method

.method public g()Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/x;->b:Ljava/util/ArrayList;

    return-object v0
.end method

.method public h()V
    .locals 3

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/model/x;->f:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    move v1, v0

    :goto_0
    if-ltz v1, :cond_1

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/DataSetObserver;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/database/DataSetObserver;->onChanged()V

    :goto_1
    add-int/lit8 v0, v1, -0x1

    move v1, v0

    goto :goto_0

    :cond_0
    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    goto :goto_1

    :cond_1
    return-void
.end method
